<?php

namespace Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Safe
 *
 * @ORM\Table(name="safe")
 * @ORM\Entity
 */
class Safe
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="payout_rate", type="integer", nullable=false)
     */
    protected $payoutRate;

    /**
     * @var integer
     *
     * @ORM\Column(name="cash", type="integer", nullable=false)
     */
    protected $cash;

    /**
     * @var integer
     *
     * @ORM\Column(name="honor_points", type="integer", nullable=false)
     */
    protected $honorPoints;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="last_modified", type="datetime", nullable=false)
     */
    protected $lastModified;

    /**
     * @var \Entity\User
     *
     * @ORM\ManyToOne(targetEntity="Entity\User")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="user_id_owner", referencedColumnName="id")
     * })
     */
    protected $userOwner;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set payoutRate
     *
     * @param integer $payoutRate
     * @return Safe
     */
    public function setPayoutRate($payoutRate)
    {
        $this->payoutRate = $payoutRate;
    
        return $this;
    }

    /**
     * Get payoutRate
     *
     * @return integer 
     */
    public function getPayoutRate()
    {
        return $this->payoutRate;
    }

    /**
     * Set cash
     *
     * @param integer $cash
     * @return Safe
     */
    public function setCash($cash)
    {
        $this->cash = $cash;
    
        return $this;
    }

    /**
     * Get cash
     *
     * @return integer 
     */
    public function getCash()
    {
        return $this->cash;
    }

    /**
     * Set honorPoints
     *
     * @param integer $honorPoints
     * @return Safe
     */
    public function setHonorPoints($honorPoints)
    {
        $this->honorPoints = $honorPoints;
    
        return $this;
    }

    /**
     * Get honorPoints
     *
     * @return integer 
     */
    public function getHonorPoints()
    {
        return $this->honorPoints;
    }

    /**
     * Set lastModified
     *
     * @param \DateTime $lastModified
     * @return Safe
     */
    public function setLastModified($lastModified)
    {
        $this->lastModified = $lastModified;
    
        return $this;
    }

    /**
     * Get lastModified
     *
     * @return \DateTime 
     */
    public function getLastModified()
    {
        return $this->lastModified;
    }

    /**
     * Set userOwner
     *
     * @param \Entity\User $userOwner
     * @return Safe
     */
    public function setUserOwner(\Entity\User $userOwner = null)
    {
        $this->userOwner = $userOwner;
    
        return $this;
    }

    /**
     * Get userOwner
     *
     * @return \Entity\User 
     */
    public function getUserOwner()
    {
        return $this->userOwner;
    }
}
